package com.bean;

import java.util.List;

public class Course {
    private int cid;
    private String cname;
    private int credit;
    private String teacher;
    private List<StudentBean> studentBeans;


    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public int getCredit() {
        return credit;
    }

    public void setCredit(int credit) {
        this.credit = credit;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public List<StudentBean> getStudentBeans() {
        return studentBeans;
    }

    public void setStudentBeans(List<StudentBean> studentBeans) {
        this.studentBeans = studentBeans;
    }

    @Override
    public String toString() {
        return "Course{" +
                "cid=" + cid +
                ", cname='" + cname + '\'' +
                ", credit=" + credit +
                ", teacher='" + teacher + '\'' +
                ", studentBeans=" + studentBeans +
                '}';
    }
}
